package io.datajek.springbasics.movierecommendersystem.lesson5;

import io.datajek.springbasics.movierecommendersystem.lesson2.Filter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RecommenderImplementation {
    @Autowired
    private Filter contentBasedFilter;

    public String[] recommendMovies (String movie){
        System.out.println("\nName of the filter in use: " + contentBasedFilter + "\n");
        //ContentBasedFilter filter =new ContentBasedFilter();
        String[] results = contentBasedFilter.getRecommendations("Finding Dory");

        //return new String[] {"M1", "M2", "M3"};
        return results;

    }
}
